package org.hxyjs.service;


import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Books;
import org.hxyjs.entity.Books;
import org.hxyjs.page.PageInfo;

public interface BooksService {
    /**
     * 查询全部管理员
     * @return
     */
    public DTO<Books> getAllBookss() throws Exception;
    /**
     * 删除管理员
     * @return
     */
    public DTO<Books> deleteBooksByBno(String bno) throws Exception;
    /**
     * 修改管理员
     * @return
     */
    public DTO<Books> updateBooksByBno(Books books) throws Exception;
    /**
     * 增加管理员
     * @return
     */
    public DTO<Books> addBooks(Books books) throws Exception;
    /**
     * 分页查询书籍
     * @return
     */
    public DTO<Books> getBooksByPage(PageInfo pageInfo) throws Exception;
    /**
     * ”缓存“分页查询书籍
     * @return
     */
    public DTO<Books> getBooksByPage(PageInfo pageInfo, String cacheId) throws Exception;

}
